<?php

/**
 * FormModel class
 *
 * @author Julot <andy.julot@gmail.com>
 * @since Friday, March 01, 2013. 12:05 PM
 */
class FormModel extends CFormModel {

	public function getForm() {
		$options = array(
			'htmlOptions'=>array('class'=>'well'),
			'type'=>'horizontal',
		);
		Yii::import('ext.bootstrap.widgets.TbForm');
		$scenario = ucfirst($this->scenario);
		$config = "get{$scenario}Config";
		return TbForm::createForm($this->$config(), $this, $options);
	}

}
